package com.web.servlets;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import com.google.gson.Gson;
import static org.junit.Assert.*;

@RunWith(JUnit4.class)
public class Deserialization {

		@Test
		public void dev(){
		
		Empleado empleado=new Empleado();	
		Gson gson = new Gson();
		String stringJson = gson.toJson(empleado);
		assertEquals("{\"nombre\":edgar,\"apellido\":\"hurtarte\",\"opinion\":\"Buena\",\"comentario\":\"xx\"   }", stringJson);

		
		}
}
